﻿@using NOSDC.Areas.Admin.Models
@model IList<UserViewModel>
@{
    ViewBag.Title = "Users";
}

<h1>Current Member Listing</h1>
<br />

<strong>Total Members</strong>: @Model.Count
<br /><br />
@using(Html.BeginForm()){
    <table>
        <th>Username</th>
        <th>First Name</th>
        <th>Last Name</th>
        <th>Role</th>

        @foreach (var t in Model)
        {
            <tr>
                <td>@Html.DisplayFor(u => t.Username)</td>
                <td>@Html.DisplayFor(u => t.FirstName)</td>
                <td>@Html.DisplayFor(u => t.LastName)</td>
                <td>@Html.DisplayFor(u => t.Role)</td>
            </tr>
        }
    
    </table>
    
}